package com.loong.user.common.backend.result;

import com.loong.user.model.ManageResource;
import lombok.*;

import javax.persistence.Column;
import java.util.List;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-10-16 11:42
 */
@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class ManageResourceResult {

    private Long id;
    /**
     * 名称
     */
    private String name;

    /**
     * 接口路径
     */
    @Column(name = "api_path")
    private String apiPath;

    /**
     * 路由
     */
    private String router;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 分组id
     */
    @Column(name = "group_id")
    private Long groupId;

    /**
     * 资源类型:1 路由 2按钮 3超链接
     */
    private Integer type;

    /**
     * 图标
     */
    private String logo;

    /**
     * 父级id
     */
    @Column(name = "parent_id")
    private Long parentId;


    List<ManageResourceResult> children;
    /**
     * 用于前端展示用
     */
    private String checked;

    /**
     *分组名字
     */
    private String groupName;
    /**
     * 分组状态
     */
    private Boolean groupStatus;

}
